
import Layout from '@/layout'

export default {
  // 一级路由的地址
  path: '/base',
  // 是用布局作为组件
  component: Layout,
  // 【名称，非常的重要，有可能是作为权限的筛选标识】
  name: 'base',
  meta: { title: '后台管理', icon: 'table' },
  children: [
    {
      path: '/base/users',
      component: () => import('@/views/base/users'),
      name: 'base-users',
      meta: {
        title: '用户',
        icon: 'table'
      }
    },
    {
      path: '/base/menus',
      component: () => import('@/views/base/menus'),
      name: 'base-menus',
      meta: {
        title: '菜单',
        icon: 'table'
      }
    },
    {
      path: '/base/permissions',
      component: () => import('@/views/base/permissions'),
      name: 'base-permissions',
      meta: {
        title: '权限',
        icon: 'table'
      }
    }, {
      path: '/base/logs',
      component: () => import('@/views/base/logs'),
      name: 'base-logs',
      meta: {
        title: '日志',
        icon: 'table'
      }
    }
  ]
}
